package cn.darkhorse.ticket.store.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 库存数量变化记录表
 * </p>
 *
 * @author wangxinghui
 * @since 2024-01-16
 */
@Getter
@Setter
  @TableName("ticket_inventory_surplus")
@ApiModel(value = "TicketInventorySurplus对象", description = "库存数量变化记录表")
public class TicketInventorySurplus implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("产品ID")
      private Long productId;

      @ApiModelProperty("总量")
      private BigDecimal total;

      @ApiModelProperty("所在仓库ID")
      private Long warehouseId;

      @ApiModelProperty("使用量")
      private BigDecimal usege;

      @ApiModelProperty("剩余量")
      private BigDecimal surplus;

      @ApiModelProperty("入库单ID")
      private Long warehousingId;

      @ApiModelProperty("出库单ID")
      private Long outboundId;
      
      private String businessType;

      @ApiModelProperty("创建时间")
      private LocalDateTime gmtCreate;


}
